package com.ruoyi.project.medicinal.service.impl;

import com.ruoyi.project.medicinal.domain.StockMedicines;
import com.ruoyi.project.medicinal.domain.StockProducter;
import com.ruoyi.project.medicinal.mapper.MedicinesMapper;
import com.ruoyi.project.medicinal.service.MedicinesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MedicinesServiceImpl implements MedicinesService {

    @Autowired
    private MedicinesMapper medicinesMapper;
    @Override
    public List<StockMedicines> selectPostList(StockMedicines medicines) {
        return medicinesMapper.selectMedList(medicines);
    }

    @Override
    public int insertMed(StockMedicines medicines) {
        return medicinesMapper.insertMed(medicines);
    }

    @Override
    public StockMedicines selectMedById(Long medicinesId) {
        return medicinesMapper.selectMedById(medicinesId);
    }

    @Override
    public int updateMed(StockMedicines medicines) {
        return medicinesMapper.updateMed(medicines);
    }

    @Override
    public int deleteMedByIds(Long[] medicinesId) {
        return medicinesMapper.deleteMedByIds(medicinesId);
    }
}
